package wxshop.api.user.model;

import java.io.Serializable;
import java.util.List;

/**
 * Created by yvdedu.com on 2018/1/22.
 */
public class User implements Serializable {
	
	private int id;
	private String login;
	private String password;
	private String name;
	private int balance;
	
	
	private List<Balances> balances;
	
	private List<OrderRecord> orderRecord;
	
	private List<Xx> xx;
	
	public User () {
	}
	
	public User ( String login, String password, String name, List<Xx> xx) {
		this.login = login;
		this.password = password;
		this.name = name;
		this.xx = xx;
	}
	
	public User (List<Balances> balances) {
		this.balances = balances;
	}
	
	public User (String login, String password) {
		this.login = login;
		this.password = password;
	}
	
	
	public User (int id, int balance) {
		this.id = id;
		this.balance = balance;
	}
	
	public User (String login) {
		this.login = login;
	}
	
	public User (String login, String password, String name) {
		this.login = login;
		this.password = password;
		this.name = name;
	}
	
	public User (int id, String login, String password, String name) {
		this.id = id;
		this.login = login;
		this.password = password;
		this.name = name;
	}
	
	public User (int id, String login, String password, String name, int balance) {
		this.id = id;
		this.login = login;
		this.password = password;
		this.name = name;
		this.balance = balance;
	}
	
	public int getId () {
		return id;
	}
	
	public void setId (int id) {
		this.id = id;
	}
	
	public String getLogin () {
		return login;
	}
	
	public void setLogin (String login) {
		this.login = login;
	}
	
	public String getPassword () {
		return password;
	}
	
	public void setPassword (String password) {
		this.password = password;
	}
	
	public String getName () {
		return name;
	}
	
	public void setName (String name) {
		this.name = name;
	}
	
	public int getBalance () {
		return balance;
	}
	
	public void setBalance (int balance) {
		this.balance = balance;
	}
	
	public List<Balances> getBalances () {
		return balances;
	}
	
	public void setBalances (List<Balances> balances) {
		this.balances = balances;
	}
	
	public List<OrderRecord> getOrderRecord () {
		return orderRecord;
	}
	
	public void setOrderRecord (List<OrderRecord> orderRecord) {
		this.orderRecord = orderRecord;
	}
	
	public List<Xx> getXx () {
		return xx;
	}
	
	public void setXx (List<Xx> xx) {
		this.xx = xx;
	}
	
	@Override
	public String toString () {
		return "User{" +
				"id=" + id +
				", login='" + login + '\'' +
				", password='" + password + '\'' +
				", name='" + name + '\'' +
				", balance=" + balance +
				", \nbalances=" + balances +
				", \norderRecord=" + orderRecord +
				", \nxx=" + xx +
				'}';
	}
}
